package mdm.led.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import mdm.led.dao.DepartmentMapper;
import mdm.led.entity.department.Department;
import mdm.led.service.DepartmentService;

/**
 *
 * @author :Monarch丿He
 * @date :2018年12月7日
 * @explain : 部门业务接口实现类
 */
@Service("departmentService")
public class DepartmentServiceImpl implements DepartmentService {

	@Autowired
	private DepartmentMapper departmentDao;

	@Override
	public int addDepartment(Department one) {
		int addDepartmentTwo = departmentDao.addDepartment(one);
		return addDepartmentTwo;
	}

	@Override
	public int updetaDepartment(Department one) {
		int updetaDepartment = departmentDao.updetaDepartment(one);
		return updetaDepartment;
	}

	@Override
	public List<Department> findDepartment(Department one) {
		List<Department> findDepartment = departmentDao.findDepartment(one);
		return findDepartment;
	}

	@Override
	public Department findDepartmentById(Integer id) {
		return departmentDao.findDepartmentById(id);
	}


}
